a, b = map(int, input().split())
ans = 1
for i in range(0, b):
    ans *= a
print(ans)
